<template>

  <div class="common-state" v-show="isShow">
      <div class="common-state_image">
          <img :src='image' :alt="description">
      </div>
      <div class="common-state_text">
          <p style='line-height: 21px;'>{{description}} 
            <el-link style="margin-left:10px;vertical-align: baseline;" :underline="false" type="primary" @click="reload">重新刷新</el-link>
          </p>
      </div>
  </div>

  
</template>

<script>
export default {
  props:{
      isShow:Boolean,
      image:String,
      description:String,
  },
  data() {
    return {

    };
  },
  mounted() {

  },
  beforeDestroy() {
    this.$off()
  },
  methods: {
    reload(){
    
      this.$emit('reload')
    }
  },
};
</script>

<style scoped lang="scss">

img {
    width: 100%;
    height: 100%;
}

p {
    font-size: 14px;
    color: $SencondTextColor;
}

</style>